<!DOCTYPE html>
<html>
<head>
  <title><%= full_title(yield :title) %></title>
<%= stylesheet_link_tag "application", :media => "all" %>
<%= javascript_include_tag "application" %>
<%= javascript_include_tag "locale." << params[:locale] << ".js" %>
  <link href='http://fonts.googleapis.com/css?family=Titillium+Web:200,600&amp;subset=latin,latin-ext' rel='stylesheet' type='text/css'>
  <link rel="shortcut icon" href="/favicon.png" />
<%= csrf_meta_tags %>
<%= render 'layouts/shim' %>
</head>
<body>

<% if params[:action] == 'home' %>
  <header>
    <div id="homepage-top-container">
<%= render 'layouts/navigation' %>
      <div id="top-filling"></div>
      <div id="main-pic" class="flexslider">
        <ul class="slides">
          <li>
            <%= image_tag 'tablet1.jpg', alt: '' %>
            <div class="slide-caption">
              <h1><span>TABLET E8</span></h1>
              <p><%= t(:SLIDE1) %></p>
            </div>
          </li>
          <li>
            <%= image_tag 'tablet2.jpg', alt: '' %>
            <div class="slide-caption">
              <h1><span>TABLET E8</span></h1>
              <p><%= t(:SLIDE1) %></p>
            </div>
          </li>
          <li>
            <%= image_tag 'tablet6.jpg', alt: '' %>
            <div class="slide-caption">
              <h1><span>TABLET E8</span></h1>
              <p><%= t(:SLIDE1) %></p>
            </div>
          </li>
          <li>
            <%= image_tag 'tablet4.jpg', alt: '' %>
            <div class="slide-caption">
              <h1><span>TABLET E8</span></h1>
              <p><%= t(:SLIDE1) %></p>
            </div>
          </li>
          <li>
            <%= image_tag 'tablet5.jpg', alt: '' %>
            <div class="slide-caption">
              <h1><span>TABLET E8</span></h1>
              <p><%= t(:SLIDE1) %></p>
            </div>
          </li>
          <li>
            <%= image_tag 'tablet3.jpg', alt: '' %>
            <div class="slide-caption">
              <h1><span>TABLET E8</span></h1>
              <p><%= t(:SLIDE1) %></p>
            </div>
          </li>
        </ul>
      </div>  
      <div id="en"><%= link_to '', '/en' %></div><div id="cz"><%= link_to '', '/cs' %></div>
    </div>      
  </header>
<%= yield %>

<% else %>
  <header>
    <div id="top-container">
<%= render 'layouts/navigation' %>
      <div id="top-filling"></div>
      <div id="en"><%= link_to '', '/en' %></div><div id="cz"><%= link_to '', '/cs' %></div>
    </div>
 </header>

  <div id="page-content">
<%= yield %>
  </div>
<% end %>

<%= render 'layouts/footer' %>

<%= debug(params) if Rails.env == 'development' %>
</body>
</html>